#include "ShoppingCart.h"

int main()
{
    ShoppingCart s;
    while(1)
    {
        s.ShowCart();
        std::cout<<"1、添加商品到购物车\n";
        std::cout<<"2、将商品移除购物车\n";
        std::cout<<"3、撤销商品的删除\n";
        std::cout<<"4、退出\n";

        int choice = 0;
        std::cout << "请输入您的选择：";
        std::cin>>choice;
        switch(choice)
        {
            case 1:s.AddProduct();break;
            case 2:s.RemoveProduct();break;
            case 3:s.UndoDeletion();break;
            case 4:return 0;
            default:
                return 0;
        }
    }
}